import sys
from mako.template import Template
mytemplate = Template(filename=sys.argv[1])
file_object = open(sys.argv[1], 'w')
file_object.write(mytemplate.render())
file_object.close()
